const {
  defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    host: "localhost",
    port: '8078',
    proxy: {
      "/user": {
        target: "http://localhost:8089",
        changeOrigin: true,
        pathRewrite: {
          '^user': ''
        }
      },
      "/student": {
        target: "http://localhost:8089",
        changeOrigin: true,
        pathRewrite: {
          '^student': ''
        }
      },
      "/teacher": {
        target: "http://localhost:8089",
        changeOrigin: true,
        pathRewrite: {
          '^teacher': ''
        }
      },
      "/evaluation": {
        target: "http://localhost:8089",
        changeOrigin: true,
        pathRewrite: {
          '^evaluation': ''
        }
      },
      "/overWeight": {
        target: "http://localhost:8089",
        changeOrigin: true,
        pathRewrite: {
          '^overWeight': ''
        }
      },
      "/recommend": {
        target: "http://localhost:8089",
        changeOrigin: true,
        pathRewrite: {
          '^recommend': ''
        }
      }
    },
  }
})